package org.binarylook.nio;
/*
 *
 *@Ref -  http://www.java2s.com/Code/Java/Network-Protocol/Nonblockserver.htm
 */
import java.io.IOException;

public class Entry {

    public int RunningServer = 2;

    public static void main(String arg[]) throws IOException{
           Entry server = new Entry();
    }

    /**
     *Entry function of the project
     *@throws java.io.IOException
     */
    public Entry() throws IOException{
        Server InitServer;  
        if(this.RunningServer == 1){
            InitServer  = new Custom();
        }
        else{
            InitServer  = new Trail();
        }
        InitServer.Start();
        
    }
   
}
